from functools import wraps

from django.contrib.auth import REDIRECT_FIELD_NAME
from rest_framework.pagination import PageNumberPagination
from rest_framework.permissions import BasePermission, SAFE_METHODS


class PageNum(PageNumberPagination):
    page_size_query_param = 'limit'
    max_page_size = 20


